<!--
  Generated template for the SendMailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>填写注册邮箱</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <form (ngSubmit)="toRegisterPage()" #myForm="ngForm">
    <ion-row>
      <ion-col>
        <ion-item>
          <ion-input type="email" name="mail" [(ngModel)]="mail" email placeholder="输入邮箱地址"></ion-input>
        </ion-item>
      </ion-col>
    </ion-row>

    <button ion-button block type="submit" [disabled]="!myForm.valid||(seconds<60 && seconds>0)">
      <span *ngIf="seconds<60 && seconds>0">点击获取验证码 ({{seconds}}s)</span>
      <span *ngIf="seconds==60 || seconds==0">点击获取验证码</span>
    </button>
  </form>
</ion-content>
